package com.itheima.inner.test7;

public class Test {
    public static void main(String[] args) {
        //继承 了父类的子类对象
        Fu fu = new Fu(){
            @Override
            public void sing() {
                System.out.println("我自己的sing");
            }
        };
        fu.sing();
    }

}
class Fu{
    public void sing(){
        System.out.println("fu  sing");
    }
}